#!/bin/sh

BASE=http://kansalliskirjasto.onki.fi
CMD=./generate-urls.py

# global
$CMD 100 "$BASE/fi/" >onki-dynamic-urls-vocabularies.txt
$CMD 50 "$BASE/fi/about" >onki-dynamic-urls-about.txt
$CMD 50 "$BASE/fi/feedback" >onki-dynamic-urls-vocabularies.txt

# vocabulary-specific
$CMD 50 "$BASE/%s/fi/stats" vocab >onki-dynamic-urls-stats.txt

# everything in one file
rm -f onki-dynamic-urls-all.txt
cat onki-dynamic-urls-*.txt >onki-dynamic-urls-all.txt
